import request from '@/libs/axios'

export const cometSendMessage = (data) => {
  return request({
    url: '/blog/article/comet/message',
    method: 'POST',
    data
  }).then(res => res ? res.data : {})
}

export const cometReceiveMessage = (params) => {
  return request({
    url: '/blog/article/comet/message',
    params
  }).then(res => res ? res.data : {})
}

export const cometLockSendMessage = (data) => {
  return request({
    url: '/blog/article/cometLock/message',
    method: 'POST',
    data
  }).then(res => res ? res.data : {})
}

export const cometLockReceiveMessage = (params) => {
  return request({
    url: '/blog/article/cometLock/message',
    params
  }).then(res => res ? res.data : {})
}
